<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%@ include file="/common/meta.jsp"%>
<link href="<s:url value='/css/main.css'/>" rel="stylesheet"
	type="text/css" />
<script type="text/javascript" language="JavaScript"
	src="<s:url value='/js/jquery/jquery-1.3.2.min.js'/>"></script>
<script type="text/javascript"
	src="<s:url value='/js/DatePicker/DatePicker.js'/>"></script>
<title>用户编辑</title>
</head>
<body>
<s:if test="%{message != null}">
	<font color="red"><s:property value="message" escape="false" /></font>
</s:if>
<br />
<s:form action="UserSave" namespace="/" method="post">
<s:hidden name="item.id"></s:hidden>
<table width="100%" border="0" cellpadding="3" cellspacing="1"
	bgcolor="#E2E2E2">
	<tr class="tr1">
		<td colspan="4">用户编辑</td>
	</tr>
	<tr class="tab">
		<td class="td1">用户名：<font color="red">*</font></td>
		<td><s:textfield name="item.name" size="20"></s:textfield></td>
		<td class="td1">登录名：<font color="red">*</font></td>
		<td><s:textfield name="item.loginName" size="20"></s:textfield></td>
	</tr>
	<tr class="tab">
		<td class="td1">email：</td>
		<td><s:textfield name="item.email" size="20"></s:textfield></td>
		<td class="td1">角色：<font color="red">*</font></td>
		<td>
		<s:if test="roles != null">
    		<s:select list="roles" listKey="id" listValue="name" name="item.roleId"></s:select>
    	</s:if>
    	<s:else>
    		<s:hidden name="item.roleId"></s:hidden>
    	</s:else>
		</td>
	</tr>
	<tr class="tab">
		<td class="td1">允许IP(<font color="red">以;分隔</font>)：</td>
		<td colspan="3"><s:textarea name="item.enableIp" cols="50" rows="5"></s:textarea></td>
	</tr>
	<tr class="tab">
		<td class="td1">备注：</td>
		<td colspan="3"><s:textarea name="item.remark" cols="50" rows="5"></s:textarea></td>
	</tr>
	<tr class="tab">
		<td colspan="4">
			<s:submit value="保存"></s:submit>
		</td>
	</tr>
</table>
</s:form>
<br />
</body>
</html>